<template>
	<view >
       <videoList></videoList>
	</view>
</template>

<script>
	import videoList from '@/components/index/.vue';
	export default {
		data() {
			return {
				
			}
		},
		computed: {
			user(){
				return this.$store.state.userinfo;
			}
		},
		onLoad() {
			this.GetJson(this.ip + 'setapp.php','POST', {}, e => {
			this.ititle = e.ititle
			})
			//#ifdef H5
			uni.getStorage({
				key:'userinfo',
				success: (e) => {
					let sign = this.md5(e.data.token);
					this.GetJson(this.ip + 'userinfo.php','POST',{
						token:e.data.token,
						sign:sign
					},e=>{
						if(e.code == 405 || e.userinfo == null || e.userinfo == ''){
							uni.removeStorage({key:'ulogin'})
							uni.reLaunch({url:'../login/login'})
						}
						if(this.isdata(e)){
							this.$store.state.userinfo = e.userinfo;
							this.$store.state.account = e.account;//提现账户
							this.$store.state.follow = e.follow;
							this.$store.state.dianzan = e.dianzan;
							this.$store.state.integral = e.integral;
					       this.user = e.userinfo;
					       this.integral = e.integral;
					       this.follow = e.follow;
					   }
					})
				}  
			})
			//#endif
			uni.getStorage({
				key:'maindata',
				success: (e) => {
					this.lunbo = e.data.lunbo;
					this.iqiyi = e.data.iqiyi;
					this.tengxun = e.data.tengxun;
					this.youku = e.data.youku;
					this.$nextTick(function(){
						plus.navigator.closeSplashscreen();
					})
				}  
			})
		
		},
		onReady() {
			uni.$emit('getgengxin',false);
		},
		methods: {
			
		},
		onPullDownRefresh() {
			this.getdata(true);
		},
		onReachBottom() {
			if(this.load = false)this.getdata('is')
		
		}
	}
</script> 

<style>
	page{
		background-color: #000000;
		
	}

</style>
